package com.yuexin.project.statistic.bookDish.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yuexin.framework.web.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户报餐菜品明细表 sta_book_dish
 *
 * @author yuexin
 * @date 2019-03-05
 */
public class BookDish extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/** 报餐菜品明细ID */
	private Integer id;
	/** 报餐ID */
	private Integer bookId;
	/** 用户账号 */
	private String userName;
	/** 菜品ID */
	private Integer dishId;
	/** 菜品名称 */
	private String dishName;
	/** 菜品售价 */
	private BigDecimal dishPrice;
	/** 份数 */
	private Integer several;
	/** 餐别（0：早餐，1：午餐，2：晚餐，3：其他餐） */
	private String dinnerType;
	/**  */
	private String companyId;
	/** 状态（0正常 1停用） */
	private String status;
	/** 备注 */
	private String remark;
	/** 创建者 */
	private String createBy;
	/** 创建时间 */
	private Date createTime;
	/** 更新者 */
	private String updateBy;
	/** 更新时间 */
	private Date updateTime;

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getId() {
		return id;
	}
	public void setBookId(Integer bookId) {
		this.bookId = bookId;
	}

	public Integer getBookId() {
		return bookId;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserName() {
		return userName;
	}
	public void setDishId(Integer dishId) {
		this.dishId = dishId;
	}

	public Integer getDishId() {
		return dishId;
	}
	public void setDishName(String dishName) {
		this.dishName = dishName;
	}

	public String getDishName() {
		return dishName;
	}
	public void setDishPrice(BigDecimal dishPrice) {
		this.dishPrice = dishPrice;
	}

	public BigDecimal getDishPrice() {
		return dishPrice;
	}
	public void setSeveral(Integer several) {
		this.several = several;
	}

	public Integer getSeveral() {
		return several;
	}
	public void setDinnerType(String dinnerType) {
		this.dinnerType = dinnerType;
	}

	public String getDinnerType() {
		return dinnerType;
	}
	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}

	public String getCompanyId() {
		return companyId;
	}
	public void setStatus(String status) {
		this.status = status;
	}

	public String getStatus() {
		return status;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getRemark() {
		return remark;
	}
	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public String getCreateBy() {
		return createBy;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getCreateTime() {
		return createTime;
	}
	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}

	public String getUpdateBy() {
		return updateBy;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bookId", getBookId())
            .append("userName", getUserName())
            .append("dishId", getDishId())
            .append("dishName", getDishName())
            .append("dishPrice", getDishPrice())
            .append("several", getSeveral())
            .append("dinnerType", getDinnerType())
            .append("companyId", getCompanyId())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
